<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>ejson4cpp: src/ejson/parser.cc 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">ejson4cpp
   &#160;<span id="projectnumber">1.5.0</span>
   </div>
   <div id="projectbrief">a easy and efficiency json parser for cpp</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('parser_8cc.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#define-members">宏定义</a> &#124;
<a href="#var-members">变量</a>  </div>
  <div class="headertitle">
<div class="title">parser.cc 文件参考</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="parser_8h_source.html">parser.h</a>&quot;</code><br />
<code>#include &lt;cctype&gt;</code><br />
<code>#include &lt;iostream&gt;</code><br />
<code>#include &quot;hedley/hedley.hpp&quot;</code><br />
<code>#include &quot;<a class="el" href="jobject_8h_source.html">jobject.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
parser.cc 的引用(Include)关系图:</div>
<div class="dyncontent">
<div class="center"><img src="parser_8cc__incl.png" border="0" usemap="#asrc_2ejson_2parser_8cc" alt=""/></div>
<map name="asrc_2ejson_2parser_8cc" id="asrc_2ejson_2parser_8cc">
<area shape="rect" title=" " alt="" coords="516,5,659,32"/>
<area shape="rect" href="parser_8h.html" title=" " alt="" coords="226,80,301,107"/>
<area shape="rect" href="jobject_8h.html" title=" " alt="" coords="629,155,708,181"/>
<area shape="rect" title=" " alt="" coords="555,80,620,107"/>
<area shape="rect" title=" " alt="" coords="645,80,725,107"/>
<area shape="rect" title=" " alt="" coords="749,80,889,107"/>
<area shape="rect" title=" " alt="" coords="127,155,200,181"/>
<area shape="rect" title=" " alt="" coords="71,229,146,256"/>
<area shape="rect" title=" " alt="" coords="170,229,229,256"/>
<area shape="rect" title=" " alt="" coords="5,155,103,181"/>
<area shape="rect" title=" " alt="" coords="938,229,997,256"/>
<area shape="rect" title=" " alt="" coords="1021,229,1071,256"/>
<area shape="rect" title=" " alt="" coords="1095,229,1138,256"/>
<area shape="rect" title=" " alt="" coords="1163,229,1249,256"/>
<area shape="rect" title=" " alt="" coords="1273,229,1365,256"/>
<area shape="rect" title=" " alt="" coords="1389,229,1513,256"/>
<area shape="rect" title=" " alt="" coords="253,229,367,256"/>
<area shape="rect" title=" " alt="" coords="392,229,452,256"/>
<area shape="rect" title=" " alt="" coords="476,229,539,256"/>
<area shape="rect" href="autogen_8h.html" title=" " alt="" coords="563,229,649,256"/>
<area shape="rect" href="noncopyable_8h.html" title=" " alt="" coords="674,229,791,256"/>
<area shape="rect" title=" " alt="" coords="816,229,913,256"/>
</map>
</div>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:ab4b9f0069362e3dfb4d58673b32335ad"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="parser_8cc.html#ab4b9f0069362e3dfb4d58673b32335ad">THROW_LOGIC</a>(msg)</td></tr>
<tr class="separator:ab4b9f0069362e3dfb4d58673b32335ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52218ae8b2e3df1743c3c3b8f6194673"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="parser_8cc.html#a52218ae8b2e3df1743c3c3b8f6194673">DEBUG_CONTENT</a></td></tr>
<tr class="separator:a52218ae8b2e3df1743c3c3b8f6194673"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
变量</h2></td></tr>
<tr class="memitem:ab233d8b19b9ff9b2a9b527b8f0897c51"><td class="memItemLeft" align="right" valign="top">const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="parser_8cc.html#ab233d8b19b9ff9b2a9b527b8f0897c51">kNearbyLen</a> = 20</td></tr>
<tr class="separator:ab233d8b19b9ff9b2a9b527b8f0897c51"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">宏定义说明</h2>
<a id="a52218ae8b2e3df1743c3c3b8f6194673"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a52218ae8b2e3df1743c3c3b8f6194673">&#9670;&nbsp;</a></span>DEBUG_CONTENT</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define DEBUG_CONTENT</td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">   <span class="keywordflow">do</span> {                                                                        \</div>
<div class="line">      if ((int64_t)idx_ - <a class="code" href="parser_8cc.html#ab233d8b19b9ff9b2a9b527b8f0897c51">kNearbyLen</a> &gt; 0) idx_ = idx_ - <a class="code" href="parser_8cc.html#ab233d8b19b9ff9b2a9b527b8f0897c51">kNearbyLen</a>;            \</div>
<div class="line">      else idx_ = 0;                                                           \</div>
<div class="line">      std::cout &lt;&lt; &quot;error nearby this <span class="keywordtype">string</span>:\r\n\r\n\&quot;&quot;                       \</div>
<div class="line">                &lt;&lt; os_.substr(idx_, <a class="code" href="parser_8cc.html#ab233d8b19b9ff9b2a9b527b8f0897c51">kNearbyLen</a> * 5) &lt;&lt; &quot;\&quot;\r\n\r\n&quot;           \</div>
<div class="line">                &lt;&lt; std::endl;                                                  \</div>
<div class="line">   } while (0);</div>
<div class="ttc" id="aparser_8cc_html_ab233d8b19b9ff9b2a9b527b8f0897c51"><div class="ttname"><a href="parser_8cc.html#ab233d8b19b9ff9b2a9b527b8f0897c51">kNearbyLen</a></div><div class="ttdeci">const int kNearbyLen</div><div class="ttdef"><b>Definition:</b> parser.cc:22</div></div>
</div><!-- fragment -->
</div>
</div>
<a id="ab4b9f0069362e3dfb4d58673b32335ad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab4b9f0069362e3dfb4d58673b32335ad">&#9670;&nbsp;</a></span>THROW_LOGIC</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define THROW_LOGIC</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">msg</td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>值:</b><div class="fragment"><div class="line">   <span class="keywordflow">do</span> {                                                                        \</div>
<div class="line">      throw std::logic_error(std::string(msg) + std::string(<span class="stringliteral">&quot; [&quot;</span>) +            \</div>
<div class="line">                             std::string(__FILE__ <span class="stringliteral">&quot;:&quot;</span>) +                       \</div>
<div class="line">                             std::to_string(__LINE__) + std::string(<span class="stringliteral">&quot;] &quot;</span>));    \</div>
<div class="line">   } <span class="keywordflow">while</span> (0);</div>
</div><!-- fragment -->
</div>
</div>
<h2 class="groupheader">变量说明</h2>
<a id="ab233d8b19b9ff9b2a9b527b8f0897c51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab233d8b19b9ff9b2a9b527b8f0897c51">&#9670;&nbsp;</a></span>kNearbyLen</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const int kNearbyLen = 20</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_475dcca55bd470dcbafac26a9f8459a8.html">ejson</a></li><li class="navelem"><a class="el" href="parser_8cc.html">parser.cc</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
